package com.wtc.homework2;

public class Homework05 {
    public static void main(String[] args) {
        Worker make = new Worker("马可", 1500);
        System.out.println(make.say());
        Peasant peasant = new Peasant("张三", 2500);
        System.out.println(peasant.say());
        Teacher teacher = new Teacher("李四", 3500, 28, 150);
        System.out.println(teacher.say());
        Scientist scientist = new Scientist("丁仪", 6000, 3000);
        System.out.println(scientist.say());
        Waiter waiter = new Waiter("王五", 2500);
        System.out.println(waiter.say());
    }
}
